#!/bin/bash

#SBATCH -N 1  # number of nodes
#SBATCH -c 1  # number of cores to allocate
#SBATCH -t 2-00:00:00   # time in d-hh:mm:ss
#SBATCH -p general       # partition
#SBATCH -q public       # QOS
#SBATCH -o logs/slurm.%j.out # file to save job's STDOUT (%j = JobId)
#SBATCH -e logs/slurm.%j.err # file to save job's STDERR (%j = JobId)
#SBATCH --mail-type=ALL # Send an e-mail when a job starts, stops, or fails
#SBATCH --export=NONE   # Purge the job-submitting shell environment
#SBATCH --array=0-200

# absolute paths
WORKDIR=/home/$USER/bbm_final_test
IMAGE=/home/$USER/bbm_final_test/image.sif

cd $WORKDIR

/usr/bin/apptainer exec "$IMAGE" python run_smm.py 'bootstrap' $SLURM_ARRAY_TASK_ID
